package com.CampusLife.bean;

public class Favorite {
    private  Integer fid;
    private  Integer id;
    private  Integer p_id;
    private String time;
    private User user;
    private Product product;

    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    @Override
    public String toString() {
        return "Favorite{" +
                "fid=" + fid +
                ", id=" + id +
                ", p_id=" + p_id +
                ", time='" + time + '\'' +
                ", user=" + user +
                ", product=" + product +
                '}';
    }
}
